11. Tree Shap Code Walkthrough (Optional)

SHAP tree code intro

M7L7 35 Tree Shap Intro V1

Algorithm

M7L7 36 Algorithm Part 1 V2

M7L7 36 Algorithm Part 2 V1

Tree Attributes

M7L7 37 Attributes V1

Proportion intro

M7L7 38 Proportion Intro V1

Proportion solution

M7L7 39 Proportion Solution V1

Tree Wrapper intro

M7L7 40 Wrapper Intro V1

Tree Wrapper solution

M7L7 41 Wrapper Solution V1

Tree Prediction intro

M7L7 42 Prediction Intro Part 1 V2

M7L7 42 Prediction Intro Part 2 V1

Tree Prediction solution

M7L7 43 Prediction Solution Part 1 V2

M7L7 43 Prediction Solution Part 2 V1

Calculate Weight intro

M7L7 44 Weight Intro V1

Calculate Weight solution

M7L7 45 Weight Solution V1

Marginal Contribution intro

M7L7 46 Marginal Intro V1

Marginal Contribution solution

M7L7 47 Marginal Solution V1

Generate all subsets intro

M7L7 48 Subsets Intro V1

Generate all Subsets solution

M7L7 49 Subsets Solution V1

Shap Value for One Feature intro

M7L7 50 Shap One Intro V1 (1)

Shap Value for One Feature solution

M7L7 51 Shap One Solution V2 (1)

Shap Value for all Features in a Model

M7L7 52 Shap All V1 (1)

Additive Feature Attribution

M7L7 53 Additive Feature Att Part 1 V2

M7L7 53 Additive Feature Att Part 2 V1

Test 1

M7L7 54 Test1 V1

Test 2

M7L7 55 Test2 V1

Test 3

M7L7 56 Test3 V1